//
//  UILabel+Extension.swift
//  Weibo19
//
//  Created by heima on 16/8/30.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit


extension UILabel {
    
    convenience init(textColor: UIColor, fontSize: CGFloat) {
        self.init()
        self.textColor = textColor
        self.font = UIFont.systemFont(ofSize: fontSize)
    }
}

extension UIButton {
    
    convenience init(textColor: UIColor, fontSize: CGFloat) {
        self.init()
        self.setTitleColor(textColor, for: UIControlState.normal)
        self.titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
    }
}
